package com.flyco.modules.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 商家
 * @Author: flyco
 * @Date:   2020-06-30
 * @Version: V1.0
 */
@Data
@TableName("sys_partner")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_partner对象", description="商家")
public class SysPartner {
    
	/**商家id*/
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "商家id")
	private Long id;
	/**商家名称*/
	@Excel(name = "商家名称", width = 15)
    @ApiModelProperty(value = "商家名称")
	private String name;
	/**商家logo*/
	@Excel(name = "商家logo", width = 15)
	@ApiModelProperty(value = "商家logo")
	private String logo;
	/**商家联系电话*/
	@Excel(name = "商家联系电话", width = 15)
    @ApiModelProperty(value = "商家联系电话")
	private String phone;
	/**商家手机号*/
	@Excel(name = "商家手机号", width = 15)
    @ApiModelProperty(value = "商家手机号")
	private String mobile;
	/**电子邮箱*/
	@Excel(name = "电子邮箱", width = 15)
    @ApiModelProperty(value = "电子邮箱")
	private String email;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
	private String linkName;
	/**商家地址*/
	@Excel(name = "商家地址", width = 15)
    @ApiModelProperty(value = "商家地址")
	private String address;
	/**商品库商家*/
	@Excel(name = "商品库商家", width = 15)
	@ApiModelProperty(value = "商品库商家")
	private String productPartner;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
	@TableLogic
	private Integer delFlag;
	/**自主发货标志 1：商家发货 0：商家不发货*/
	@Excel(name = "自主发货标志 1：商家发货 0：商家不发货", width = 15)
    @ApiModelProperty(value = "自主发货标志 1：商家发货 0：商家不发货")
	@Dict(dicCode = "yn")
	private Integer sendFlag;
	/**认证商家标示。1，已认证；0未认证*/
	@Excel(name = "认证商家标示。1，已认证；0未认证", width = 15)
    @ApiModelProperty(value = "认证商家标示。1，已认证；0未认证")
	@Dict(dicCode = "yn")
	private Integer authFlag;
	/**线上订单总仓发货标示。1，已认证；0未认证*/
	@Excel(name = "线上订单总仓发货标示。1，已认证；0未认证", width = 15)
	@ApiModelProperty(value = "线上订单总仓发货标示。1，已认证；0未认证")
	@Dict(dicCode = "yn")
	private Integer generalDeliveryFlag;
	/**业务线(0、商城，1、零售，2、供货，3、产品展示)*/
	@Excel(name = "业务线(0、商城，1、零售，2、供货，3、产品展示)", width = 15)
	@ApiModelProperty(value = "业务线(0、商城，1、零售，2、供货，3、产品展示)")
	@Dict(dicCode = "business_line")
	private Integer businessLine;
	/**外部编码*/
	@Excel(name = "外部编码", width = 15)
	@ApiModelProperty(value = "外部编码")
	private String extCode;
	/**品牌ID*/
	@Excel(name = "品牌ID", width = 15)
	@ApiModelProperty(value = "品牌ID")
	@Dict(dictTable ="pms_brand",dicText = "name",dicCode = "id")
	private Long brandId;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
